import * as vscode from "vscode";
// 命令执行函数
export function revealSelectedText() {
  // 获取当前激活的文本编辑器
  const editor = vscode.window.activeTextEditor;
  if (!editor) {
    return;
  }
  // 获取当前选中的文本
  const selection = editor.selection;
  const selectedText = editor.document.getText(selection);
  return selectedText;
}
